
var utils = {
//  rootUrl: "http://localhost:8081/kaiDianBao/mobile/", 
	rootUrl: "http://yun.kmtsolution.com:8080/kaiDianBao/mobile/", //tony生活管
	shareUrl:'http://weixin3.kmtsolution.com/',
	shareIcon:'http://weixin3.kmtsolution.com/weixin/shareicon.png', //分享图标
	state:'tony', //公司id
//	rootUrl: "http://kmtmember360.pazishizhuang.com/kaiDianBao/mobile/",//帕姿生活
//	shareUrl:'http://kmtmember360.pazishizhuang.com/',
//	shareIcon:'http://kmtmember360.pazishizhuang.com/weixin/pazBg.png',
//	state:'JIUDONG',
	openId:'',
    getQueryString: function(name){
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); 
        var r = window.location.href.substr(window.location.href.indexOf('?')+1).match(reg); 
        if (r != null) return unescape(r[2]); 
        return null; 
    },
    wxJsApi:['onMenuShareTimeline','onMenuShareAppMessage','onMenuShareQQ','onMenuShareWeibo','onMenuShareQZone',
    				'startRecord','stopRecord','onVoiceRecordEnd','playVoice','pauseVoice','stopVoice','onVoicePlayEnd',
    				'uploadVoice','downloadVoice','chooseImage','previewImage','uploadImage','downloadImage','translateVoice',
    				'getNetworkType','openLocation','getLocation','hideOptionMenu','showOptionMenu','hideMenuItems','showMenuItems',
    				'hideAllNonBaseMenuItem','showAllNonBaseMenuItem','closeWindow','scanQRCode','chooseWXPay','openProductSpecificView',
    				'addCard','chooseCard','openCard','checkJsApi']
}

export default utils;
